<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>订单管理</title>
	<!-- 静态包含头信息!-->
	<%@include file="/pages/common/hand.jsp"%>
</head>
<body>
	
	<div id="header">
		<img class="logo_img" alt="" src="static/img/logo.jpg">
			<span class="wel_word">订单管理系统</span>
		<%@include file="/pages/common/manager_menu.jsp"%>
	</div>
	
	<div id="main">
		<table>
			<tr>
				<td>单号</td>
				<td>日期</td>
				<td>金额</td>
				<td>详情</td>
				<td>发货</td>
				
			</tr>
			<c:forEach items="${requestScope.orderList}" var="order">
				<tr>
					<td>${order.order_id}</td>
					<td>${order.create_time}</td>
					<td>${order.price}</td>
					<td><a href="OrderServlet?type=ListOrderItem&path=/pages/manager/managerOrderItem.jsp&orderid=${order.order_id}">查看详情</a></td>
					<td>
							<c:if test="${order.status==0}" >
								<a href="OrderServlet?type=updataOrder&orderid=${order.order_id}">发货</a>
							</c:if>
							${order.status==1?"等待签收":"已签收"}</td>
				</tr>

			</c:forEach>
		</table>
	</div>

	<%@include file="/pages/common/footer.jsp"%>
</body>
</html>